import { useEffect } from "react";
import { useLocation, useParams, useSearchParams } from "react-router-dom";
import axios from "axios";
function Student() {
  let [loaction, setloaction] = useSearchParams();
  let code = loaction.get("code");

  useEffect(() => {
    axios
      .get("/api/getuser", {
        params: {
          code,
        },
      })
      .then((res) => {
        console.log(res);
      });
  });
  return <div>我是学生页</div>;
}
export default Student;
